package contents.entities;

import java.util.List;
import java.util.Comparator;

public class ClassesSubjectsOfTeacher {
    public static class ByClassComparator implements Comparator {
        public int compare(Object object1, Object object2) {
            ClassesSubjectsOfTeacher classesSubjects1 = (ClassesSubjectsOfTeacher) object1;
            ClassesSubjectsOfTeacher classesSubjects2 = (ClassesSubjectsOfTeacher) object2;
            
            return classesSubjects1.getSchoolClass().getName().compareTo(classesSubjects2.getSchoolClass().getName());
        }   
    }
    
    private contents.entities.Class schoolClass;
    private List<Subject> subjects;

    public ClassesSubjectsOfTeacher(Class schoolClass, List<Subject> subjects) {
        this.schoolClass = schoolClass;
        this.subjects = subjects;
    }

    public Class getSchoolClass() {
        return schoolClass;
    }

    public List<Subject> getSubjects() {
        return subjects;
    }
}
